package com.cloud.mall.pms.service;

import com.cloud.mall.base.BaseResponse;
import com.cloud.mall.pms.input.PmsSkuStockInpDTO;
import com.cloud.mall.pms.out.PmsSkuStockOut;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@Api(tags = "sku商品库存管理")
@RequestMapping("/sku")
public interface PmsSkuStockService {


    @ApiOperation("批量更新库存信息")
    @PostMapping("/update/{pid}")
    BaseResponse update(@PathVariable Long pid,@RequestBody List<PmsSkuStockInpDTO> skuStockList);


    @ApiOperation(value = "根据商品编号及编号模糊搜索sku库存")
    @GetMapping("/{pid")
    BaseResponse <List<PmsSkuStockOut>> getList(@PathVariable Long pid, @RequestParam(value = "keyword",required = false) String keyword);

}
